//
//  LoginModel.m
//  XTXOneToOne
//
//  Created by Canny on 2018/10/29.
//  Copyright © 2018年 WK. All rights reserved.
//

#import "LoginModel.h"

@implementation LoginModel
+(void)SaveKEY:(NSString *)KEY andValue:(NSString *)value{
    
    [[NSUserDefaults standardUserDefaults] setObject:value forKey:KEY];
    
}


+(NSString *)GetValue:(NSString *)KEY{
    
    NSString * Value = [[NSUserDefaults standardUserDefaults] objectForKey:KEY];
    return Value;
    
}

+(void)loginOutData{
    [LoginModel SaveKEY:DL_user_id andValue:@""];
    [LoginModel SaveKEY:DL_username andValue:@""];
    [LoginModel SaveKEY:DL_nickname andValue:@""];
    [LoginModel SaveKEY:DL_token andValue:@""];
    [LoginModel SaveKEY:DL_Phone andValue:@""];
}


@end

@implementation LoginTool
singleton_m(LoginTool)
@end
